home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 42
/
042.d81
/
worm xing
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
70 lines
0 print"[147]"
1 ifa=.thena=1:load"worm.spr",8,1
2 ifa=1thena=2:load"worm.ml",8,1
5 goto100
10 lx=peek(v+21):iflv=lxthenreturn
20 sys65418:pokes+4,16
30 pokes+24,15:pokes+6,240:pokes+4,17
40 forza=1to30:forzx=100to50step-25
50 pokes+1,20-za+zx:next:next:pokes+4,16:sys49365:return
100 poke53280,0:poke53281,15:print"[147]";
110 v=53248:dn=15:x=198:b=15:c=0:s=54272:kl=70:lv=255
150 fora=s to s+24:pokea,0 :nexta:pokes+24,15
160 pokes,55:pokes+1,kl:pokes+6,128
200 t$="[180][144] score= 00 [170] [180][144] time= 00 [170]"
205 t$=t$+"[180][156]worm [170][184][184][184][184][184][184][184][184][184][184] [184][184][184][184][184][184][184][184][184][184][184][180][156]xing [170]"
210 t$=t$+"[184][184][184][184][184][184][184] [184][184][184][184][184][184][184]"
215 b$=" [176][192][192][192][178][192][192][192][192][178][192][192][192][192][178][192][192][192][192][178][192][192][192][192][178][192][192][192][192][178][192][192][192][192]"
220 b$=b$+" [221] [221] [221] [221] [221] [221] [221]"
300 printt$;"";b$;
450 fory=55416 to 56175:pokey,2:nexty
460 fora=1144 to 1899 step(dn+4):fory=1 to 4:pokey+a,81:nexty:nexta
500 gosub8000:poke1020,0:sys49365
550 ifpeek(1020)>0thenpokev+21,peek(v+21)and254:gosub5000
560 x=x-1:ifx=191thenx=197
561 pokes+4,17:kl=kl-10:pokes+1,kl:ifkl<15then:kl=70
565 fory=2040 to 2047:pokey,x:nexty
570 ifpeek(v+21)=0then15000
580 c=c+1:print"[144] [157][157][157][157][157][157][157]";c;
585 ifc<>999999then600
590 print"[144] [157][157][157][157][157][157][157]";:q=int(q-(c/100)):ifq<0thenq=0
595 c=0:printq;
600 z=int((rnd(1)*37)+1):g=(z/2):h=(int(z/2)):ifg<>hthenz=z-1
610 poke251,a(z):poke252,a(z+1)
700 t=int(rnd(1)*2)+1:ift=1thensys49152:goto1000
710 sys49185
1000 gosub10:lv=peek(v+21):geta$:ifa$<>"q"then550
1005 print"[147]":pokev+21,0:pokes+4,16
1010 goto15000
5000 q=q+b:print" [157][157][157][157][157][157][157]";q;:pokev,47:pokev+1,229:b=b+15
5005 pokev+21,peek(v+21)or1:
5010 pokes+4,16:fora=1144 to 1903:pokea,32:nexta:
5015 dn=dn-1:ifdn<=2thendn=3:b=b-15
5020 fora=1144 to 1899 step(dn+4):fory=1 to 4:pokey+a,81:nexty:nexta
5100 poke1020,0:pokes+4,17:return
8000 fory=1to15step2:pokev+y,229:nexty:pokev,47:pokev+2,90:pokev+4,126
8020 pokev+6,165:pokev+8,203:pokev+10,244:pokev+12,29:pokev+14,66
8025 pokev+16,192
8030 fory=2040to2047:pokey,192:nexty:pokev+39,0:fory=40to46
8035 pokev+y,6:nexty
8040 pokev+21,255
9000 dim a(37):fory=0 to 37:reada(y):nexty
9999 y=peek(v+31):return
10110 data 120,4,160,4,200,4,240,4,24,5,64,5,104,5,144,5,184,5,224,5,8,6
10120 data 48,6,88,6,128,6,168,6,208,6,248,6,32,7,72,7
15000 pokes+4,16:print"[147]time=";c:print"score=";q
15005 print"final score= (score-(time / 100))"
15010 print"final score=";:q=int(q-(c/100)):ifq<0thenq=0
15015 printq
15050 print"press space bar to play again."
15055 print" [144]press q to quit."
15060 print"worm xing":poke198,.:print""
16000 a=peek(203):ifa<>62anda<>60then16000
16010 ifa=60thenrun100
16012 print" are you sure you want to quit? (y/n)"
16014 a=peek(203):ifa<>25anda<>39then16014
16015 ifa=39thenprint"[145] [145][145]":goto15055
16020 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
16030 ifer<>63thenend
16040 sys65418:load"hello connect",8